<html class="gen_html">
<head>
<meta charset="utf-8">
<title>markdow预览</title>
<link rel="stylesheet" href="index.css">
</head>
<body class="gen_body" id="preview_body">

</body>
<script type="text/javascript">
	window.onload = load_init();
	function load_init() {
		var pre_body = document.getElementById('preview_body');
		var body_data =  localStorage.getItem("preview_body_data");
		pre_body.innerHTML = body_data;
	}

	/*===================== 全页面预览快捷键处理 =============*/
  	function hotkey() {
		var a=window.event.keyCode;
		var html_body='';
		var text = '';
		if((a==77)&&(event.ctrlKey)&&(event.altKey)){
			window.history.go(-1);
		}
	}// end hotkey
  	document.onkeydown = hotkey; //当onkeydown 事件发生时调用hotkey函数
</script>
</html>
